// All source files and native code may not be transmitted, reproduced, distributed, 
// or commercially exploited in any way without the express written consent of Sybex Inc.

//MOST THINGS THAT CHANGE

//CHAPTER TITLE
var TestChapter:String = "Chapter 8";

var user_Correct:Array = new Array("AC","A","C","A","D","C","C","AC","C","B","A","D","D","AF","C","B","A","B","D","C");

total = user_Correct.length;
_root.countdown = false;
// set to false to make the timer count up //
_root.hour = 0;
// number of hours at start//
_root.minute = 0;
// number of minutes at start//
//DON'T FORGET THE QUESTIONS AT THE END
//END OF MOST THINGS THAT CHANGE
//
//
//The following is used in the timer mc for adjusting the clock.
_root.delay = false;
_root.wait = 60;
//wait in seconds
_root.lastTime = Math.floor(getTimer()/1000);
i = 1;
totalCorrect = 0;
totalWrong = 0;
QCounter.QTotal.text = total;
Test_Title.text = TestChapter;
var finalCorrect:Number;
var userResponse:Array = new Array(total);
var markResponse:Array = new Array(total);
user_responseA = "";
user_responseB = "";
user_responseC = "";
user_responseD = "";
user_responseE = "";
user_responseF = "";
user_responseG = "";
user_responseH = "";
user_responseI = "";
user_responseJ = "";
user_responseK = "";
user_responseL = "";
user_responseM = "";
user_responseN = "";
_root.review = false;

function initialize() {
	_root.review = false;
	for (j=0; j<total; j++) {
		userResponse[j] = "";
		markResponse[j] = "";
	}
	
}

function showMatch() {
	set("user_response"+i, user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN);
	userResponse[i-1] = user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN;
}

// display multiple choice user_response answer function
function display() {
	set("user_response"+i, user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN);
	userResponse[i-1] = user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN;

	//**NEW
	response.text = userResponse[i-1];
	
}

//radio button function
function answer(choice) {
	set("user_response"+i, choice);
	userResponse[i-1] = choice;
	
	//**NEW
	response.text = userResponse[i-1];	
}

// marker button fuction
function mark(choice) {
	_root["mark"+i] = choice;
	markResponse[i-1] = choice;
}

// display fill in the blank by user.
function submit(userInput) {
	_root["user_response"+i] = userInput;
}

function reset() {
	_root["user_response"+i] = "";
}

function UnloadReview() {
	//ReviewLinks.unloadMovie();
}


function LayoutQuestion() {

	qname = "q"+(_root._currentframe-1);
	
	markname = "m"+(_root._currentframe-1);
	
	_root.loadQuestion(_root._currentframe-1);	
	
	_root.createEmptyMovieClip("container", 1);

	_root.attachMovie("Marker_mc", markname, 2, {_x:65.4, _y:55.4});
	
	if (_root.question_type == "2R") { this.attachMovie("2R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "3R") { this.attachMovie("3R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "3MC") { this.attachMovie("3MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "4R") { this.attachMovie("4R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "4MC") { this.attachMovie("4MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "5R") { this.attachMovie("5R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "5MC") { this.attachMovie("5MC", qname, 1, {_x:24, _y:165}); }	
	if (_root.question_type == "6R") { this.attachMovie("6R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "6MC") { this.attachMovie("6MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "7R") { this.attachMovie("7R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "7MC") { this.attachMovie("7MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "8R") { this.attachMovie("8R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "8MC") { this.attachMovie("8MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "9R") { this.attachMovie("9R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "9MC") { this.attachMovie("9MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "10R") { this.attachMovie("10R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "10MC") { this.attachMovie("10MC", qname, 1, {_x:24, _y:165}); }


	if (_root.review == false) { _root.attachMovie("show_answer", "show_answer1", 3, {_x:72, _y:418}); }
	if (_root.review == true)  { _root.attachMovie("show_review", "show_review1", 3, {_x:72, _y:418}); }
        if (_root.figure_flag == "True") { _root.attachMovie("show_figure", "show_figure1", 6, {_x:72, _y:418}); }
        if (_root.figure_flag == "False") { _root.createEmptyMovieClip("container", 6); }        

	question_scroll._visible = (question_text.maxscroll > 1);
	question_scroll.setSize(85,16); 
	
	//**NEW
	response.text = userResponse[i-1];
}

function loadQuestion(inNum:Number) {
	var cur:Number = inNum;
	//This corrects for the first frame holding all functions
	//QUESTIONS AND ANSWERS CAN ACCEPT HTML FORMATTING!!!
	//EACH QUESTION SHOULD BE FORMATTED SIMILAR TO THE FOLLOWING.

	switch (cur) {
case 1 :
_root.question = "The main objectives of a wireless site survey are to determine _______________and______________. (Choose two.)";
_root.answerA = "RF coverage";
_root.answerB = "Cost of equipment";
_root.answerC = "RF interference";
_root.answerD = "Manufacturers equipment";
_root.answerE = "Which client devices to purchase";
_root.correct = "AC";
_root.explanation = "The purpose of a wireless site survey is to find areas of RF coverage and interference and to determine placement of equipment such as access points and bridges. The cost of equipment, selection of manufacturer, and antenna purchasing also play a role but are not part of the site survey objective.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

case 2 :
_root.question = "What factor determines whether a site survey is required?";
_root.answerA = "Number of access points";
_root.answerB = "Geographic location of business";
_root.answerC = "Number of wiring closets";
_root.answerD = "Number of servers on site";
_root.correct = "A";
_root.explanation = "The number of required access points is a good gauge whether a site survey is required. The geographic location of the business, number of wiring closets, and the number of servers do not determine if a site survey is required.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 3 :
_root.question = "The first step of a wireless LAN site survey is typically _______________.";
_root.answerA = "Determining the RF coverage";
_root.answerB = "Installing access points";
_root.answerC = "Gathering business requirements";
_root.answerD = "Documenting existing networks";
_root.answerE = "Interviewing managers and users";
_root.correct = "C";
_root.explanation = "Typically the first step of a wireless LAN site survey is to gather the necessary business requirements. Interviewing managers and users is the next step, followed by determining RF coverage and documenting existing networks. Installing access points is one of the final steps.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 4 :
_root.question = "Enterprise wireless LAN deployments commonly use _______________ antennas for most installations.";
_root.answerA = "Omnidirectional";
_root.answerB = "Semidirectional";
_root.answerC = "Yagi";
_root.answerD = "Parabolic dish";
_root.correct = "A";
_root.explanation = "Enterprise wireless LAN deployments typically use omnidirectional antennas connected directly to an access point. Other antenna types may be used but are not as common in this type of deployment.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 5 :
_root.question = "You are a wireless network engineer contracted to perform a site survey for a company that manufactures widgets. The site survey will require a physical walk-through of the area. One concern in this implementation is interference from existing __________________.";
_root.answerA = "Wireless 3G internet devices";
_root.answerB = "Cellular telephones";
_root.answerC = "900 MHz two-way radios";
_root.answerD = "2.4 GHz ISM band devices";
_root.answerE = "CB radios";
_root.correct = "D";
_root.explanation = "Manufacturing environments typically use equipment that interferes with devices in the 2.4 GHz ISM band. Although 5 GHz equipment may be used, interference typically is not as much of an issue. Cellular telephones work in other frequency ranges and do not affect wireless LANs. 900 MHz is not used by IEEE 802.11 wireless networks. CB radios work at a different frequency range.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 6 :
_root.question = "Implementations that may have existing non-WLAN devices that will potentially interfere with a 2.4 GHz wireless LAN deployment most likely fall under what business model?";
_root.answerA = "Office";
_root.answerB = "Government";
_root.answerC = "Health care";
_root.answerD = "Education";
_root.correct = "C";
_root.explanation = "Health care locations typically have equipment that works in the 2.4 GHz ISM band. These devices could potentially cause interference with a wireless network that operates in this band. Office, government, and education installations will not have as much ISM equipment.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 7 :
_root.question = "You are hired to perform a wireless LAN site survey for a large enterprise company with over a thousand employees. You need to come up with a list of questions to ask users of the wireless network. Which question would be the most relevant for the user community?";
_root.answerA = "Where are the wiring closets?";
_root.answerB = "Do you have any floor plans available?";
_root.answerC = "What applications do you use?";
_root.answerD = "Do you have an equipment manufacturer preference?";
_root.answerE = "What is the RF coverage area?";
_root.correct = "C";
_root.explanation = "The type of applications&#8212;either hardware or software&#8212;that will be used on the wireless network will have a large impact on the final deployment. This is an important question to ask end users. The other questions also need to be answered, but should be asked of managers and IT staff.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 8 :
_root.question = "A wireless LAN site survey and design includes defining _____________ and __________ security requirements to help protect against RF jamming and protect the integrity of information. (Choose two.)";
_root.answerA = "Physical";
_root.answerB = "Access point";
_root.answerC = "Data";
_root.answerD = "Device";
_root.answerE = "Infrastructure";
_root.correct = "AC";
_root.explanation = "Physical and data security requirements are part of a wireless LAN site survey. These requirements may have an impact on the number of access points or other devices required for the network. Access point, device, and infrastructure security also plays a role but is typically not considered part of an initial site survey.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

case 9 :
_root.question = "Which device is the best candidate to use the roaming features of an IEEE 802.11g wireless computer network?";
_root.answerA = "Notebook computer";
_root.answerB = "PDA";
_root.answerC = "Voice handset";
_root.answerD = "Wireless camera";
_root.correct = "C";
_root.explanation = "Of all the devices listed, the voice handset would be the best candidate that would use roaming features of a wireless network, mostly because of mobility and features. Notebook computers and PDAs may have roaming capabilities, but these devices are not as sensitive to latency. Wireless cameras are usually stationary devices.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 10 :
_root.question = "Which is a main factor in determining the number of access points required for an IEEE 802.11g wireless LAN deployment?";
_root.answerA = "Type of client devices in use";
_root.answerB = "Number of client devices";
_root.answerC = "Manufacturer of client devices";
_root.answerD = "Antennas in client devices";
_root.correct = "B";
_root.explanation = "The number of devices is an important determining factor in the number of access points required for a wireless LAN deployment. The type and manufacturer of devices are not concerns. The antenna in a client device will help with providing and maintaining device connectivity.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 11 :
_root.question = "Interviewing managers and users will help determine which part of the site survey process?";
_root.answerA = "Performance expectations";
_root.answerB = "Locations of UNII band interference";
_root.answerC = "Creating floor plans";
_root.answerD = "Locations of access points";
_root.correct = "A";
_root.explanation = "Interviewing managers and users will help determine the performance expectations of the wireless LAN because they are the ones who will be using it and they have the best understanding of the needs of an organization. Locations of RF interference and access points are part of the network design stage, which takes place after the gathering of information stage. In most cases, creating floor plans is not a primary responsibility of a site survey; however, obtaining floor plans is significant.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 12 :
_root.question = "Which of the following can be imported into a commercial site survey program to assist in predicting the RF coverage of access points?";
_root.answerA = "Electrical specifications";
_root.answerB = "Access point models";
_root.answerC = "Bandwidth requirements";
_root.answerD = "Floor plans";
_root.answerE = "Cost estimates";
_root.correct = "D";
_root.explanation = "Floor plans of facilities can sometimes be imported into site survey software programs. This helps in determining the RF propagation by placing access points in a simulated environment. Access point models as well as cost estimates are required at a later time in a site survey.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 13 :
_root.question = "Warehouse inventory such as paint and other liquids in large quantities can cause which RF behavior?";
_root.answerA = "Reflection";
_root.answerB = "Refraction";
_root.answerC = "Diffraction";
_root.answerD = "Absorption";
_root.answerE = "Scattering";
_root.correct = "D";
_root.explanation = "Storage of paint and other liquids in large quantities can cause RF to be absorbed.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 14 :
_root.question = "You are a wireless LAN consultant contracted to assist in a site survey for a retail outlet that will deploy an 802.11g WLAN. Youve been asked to participate in an initial meeting with top management to determine the details of a site survey. What topics would most likely be discussed at this meeting? (Choose two.)";
_root.answerA = "Business requirements";
_root.answerB = "Available antenna types";
_root.answerC = "Recommended manufacturer hardware";
_root.answerD = "Bill of materials";
_root.answerE = "Applications in use";
_root.answerF = "Purpose of WLAN";
_root.correct = "AF";
_root.explanation = "The business requirements and purpose of the wireless LAN are two areas that would be discussed at an initial meeting regarding a site survey. The other topics will be discussed at a later time.";
_root.figure_flag = "False";
_root.question_type = "6MC";
break;

case 15 :
_root.question = "A wireless LAN will be deployed in a hospital. Which criteria would be addressed when discussing a potential RF jamming attack?";
_root.answerA = "Data security";
_root.answerB = "Access point security";
_root.answerC = "Physical security";
_root.answerD =	"Infrastructure security";
_root.answerE =	"Wiring closet security";
_root.correct = "C";
_root.explanation = "An RF jamming attack would fall under physical security. Access point security, infrastructure security, and wiring closet security do not involve RF jamming. Data security is a separate issue.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 16 :
_root.question = "You are a wireless LAN consultant hired to perform a site survey for a hotel. You need to interview the management and staff regarding the proposed installation of the wireless network. Which is an appropriate question to ask the hotel manager?";
_root.answerA = "Is PoE used in the hotel?";
_root.answerB = "What are the aesthetic requirements?";
_root.answerC = "Which areas lack RF coverage?";
_root.answerD = "Which areas have RF interference?";
_root.correct = "B";
_root.explanation = "The aesthetic requirements are usually discussed with hotel management since they are the ones responsible for the appearance of the hotel. PoE requirements and RF coverage and interference would be questions for a different group, which in some cases may be an outside provider.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 17 :
_root.question = "Which of the following will be the most likely reason in determining the number of access points required for a wireless LAN deployment?";
_root.answerA = "Applications used";
_root.answerB = "Security requirements";
_root.answerC = "Equipment manufacturer";
_root.answerD = "Ceiling height";
_root.correct = "A";
_root.explanation = "The applications used will determine the number of access points in a wireless LAN deployment. Bandwidth-intensive applications may require more access points. Security requirements are important but typically do not strongly affect the number of access points required. Ceiling height is a factor when determining the RF coverage, not necessarily the number of infrastructure devices.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 18 :
_root.question = "RF coverage of access points depends on which factor?";
_root.answerA = "Wiring closet location";
_root.answerB = "Access point output power";
_root.answerC = "Electrical power requirements";
_root.answerD = "Floor plans and blueprints";
_root.correct = "B";
_root.explanation = "Access point output power is a determining factor in what type of coverage the AP will provide. Wiring closet locations and electrical power requirements are more related to wired infrastructure connectivity. Floor plans and blueprints will be used to note access point locations.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 19 :
_root.question = "Which of the following is <i>not &nbsp;</i>a requirement for the initial gathering of information for a wireless LAN site survey in a new deployment scenario?";
_root.answerA = "Number of users";
_root.answerB = "Applications in use";
_root.answerC = "Other wireless networks";
_root.answerD = "Cost of equipment";
_root.correct = "D";
_root.explanation = "The initial gathering of information includes number of users, applications and their use, and other wireless networks in the area. The cost of the proposed equipment is not usually addressed at this point.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 20 :
_root.question = "Which wireless LAN deployment scenario commonly uses omnidirectional antennas mounted directly to an access point?";
_root.answerA = "Manufacturing";
_root.answerB = "Warehousing";
_root.answerC = "Office building";
_root.answerD = "Sports arena";
_root.correct = "C";
_root.explanation = "Office building deployments commonly use omnidirectional antennas that are mounted directly to an access point. Manufacturing, warehousing, and sports arenas deployments more often use a combination of omnidirectional, semidirectional, and sometimes highly directional antennas.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

	}
		
	QCounter.QCurrent.text = cur;
}

initialize();


//Change the following question numbers to the indicated question type!
//1. 5MC
//2. 4R
//3. 5R
//4. 3R
//5. 5R
//6. 4R
//7. 5R
//8. 5MC
//9. 4R
//10. 4R
//11. 4R
//12. 5R
//13. 5R
//14. 6MC
//15. 0R
//16. 4R
//17. 4R
//18. 4R
//19. 4R
//20. 4R





//